package OperatorStation;

public class MainOperatorStation {
    public static void main(String[] argv) { 
        final int refGenPriority = 6; 
        final int plotterPriority = 7; 

        String host = "localhost";
        int port = 4444;
        
    	CommClient commClient = new CommClient(host, port);
    	
        ReferenceGenerator refgen = new ReferenceGenerator(refGenPriority); 
        OpCom opcom = new OpCom(plotterPriority);
        RegulProxy regul = new RegulProxy(commClient);

        opcom.setRegul(regul);
        commClient.setRefGen(refgen);
        
        Thread t = new Thread(commClient);
        t.start();
        
        opcom.initializeGUI();
        
        commClient.setOpCom(opcom);
        
        refgen.start(); 
        opcom.start();
    } 
}

